import request from '@/utils/request'
// 默认无loading图标 若需loading 请在request参数 添加 loading:true
import { UploadBase64File } from '@/utils/string.js'
// 签名绘制保存
// eslint-disable-next-line standard/object-curly-even-spacing
export function createSign (url, { data = {}, file = {}} = {}) {
  return request({
    url: url,
    method: 'post',
    data: UploadBase64File(file, data),
    headers: {'Content-Type': 'multipart/form-data'},
    loading: true
  })
}
